import postcss from 'rollup-plugin-postcss';
import nested from 'postcss-nested';
import cssnano from 'cssnano';
import simplevars from 'postcss-simple-vars';
import { terser } from 'rollup-plugin-terser';

export default {
	input: 'src/js/main.js',
	output: {
		file: 'dist/boundle.js',
		format: 'cjs',
		name: 'boundleName',
	},

	plugins: [
		postcss({
			extensions: ['.css'],
			plugins: [nested(), cssnano(), simplevars()],
		}),
		terser({ compress: { drop_console: false } }),
	],
};
